package CommonStringUtils;

import org.apache.commons.lang.StringUtils;

/**
 * Created by wangyg 
 * on 2017/6/12 15:39
 */
public class Test {
	public static void main(String[] args) {
		String trim = StringUtils.trim("  12 3  ");
		System.out.println(trim);
		String strip = StringUtils.strip("  12 3  ");
		System.out.println(strip);

//		StringUtils.strip("abc  ") == "abc"
//		StringUtils.strip(" abc ") =="abc"
//		StringUtils.strip(" ab c ") == "ab c"

		String trim1 = StringUtils.trim("abc  ");
		String trim2 = StringUtils.trim(" abc ");
		String trim3 = StringUtils.trim(" ab c ");
		System.out.println(trim1+":"+trim2+":"+trim3);
		String strip1 = StringUtils.strip(" 124344", "14");
		System.out.println(strip1);

	}
}
